from PyQt4.QtCore import *
from PyQt4.QtGui import *
from OpenGL.GLUT import glutInit
from ui.mainwindow import MainWindow

from common.util import *

if __name__ == "__main__":
	import sys, time

	app = QApplication(sys.argv)
	
	# Create and display the splash screen
	splash_pix = QPixmap(file_path('../data/images/me_loading.png'))
	splash = QSplashScreen(splash_pix, Qt.WindowStaysOnTopHint)
	splash.setMask(splash_pix.mask())
	splash.show()
	app.processEvents()

	form = MainWindow()
	form.show()
	splash.finish(form)
	
	glutInit(sys.argv)
	
	app.exec_()
